$selectedColor: #f6f7ff;
$lighterBlue: #409EFF;

.container {
  position: relative;
  width: 100%;
  height: 100%;
}

.components-list {
  box-sizing: border-box;
  height: 100%;
  padding: 0 16px;
  .components-item {
    display: inline-block;
    width: 48%;
    margin: 1%;
    transition: transform 0ms !important;
  }
}

.components-title {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  color: #303133;
  padding: 16px 0;
  .svg-icon {
    color: #666;
    font-size: 18px;
    margin-right: 6px;
  }
  .icon-box{
    width: 120px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
  }
  .top-icon{
      width: 10px;
      height: 10px;
      margin-left: 4px;
      margin-top: 4px;
      background-image: url(/img/up.png);
      background-size: 100% 100%;
  }
  
  .bottom-icon{
      width: 10px;
      height: 10px;
      margin-left: 4px;
      margin-top: 4px;
      background-image: url(/img/down.png);
      background-size: 100% 100%;
  }

}

.components-body {
     /* padding: 8px 10px; */
     background: #f6f7ff;
     /* font-size: 12px; */
     cursor: move;
     /* border: 1px dashed #f6f7ff; */
     /* border-radius: 3px; */
     height: 40px;
     background: #F3F9FF;
     display: flex;
     align-items: center;
     /* justify-content: center; */
     padding-left: 20px;
     border: 1px solid #F3F9FF;
  .svg-icon {
    color: #043254;
    font-size: 16px;
    margin-right: 10px;
  }
  .title{
    font-size: 12px;
    font-weight: 400;
    color: #043254;
  }

  &:hover {
    border: 1px dashed #409eff;
    color: #409eff;
	box-sizing: border-box;

    .svg-icon {
      color: #409eff;
    }
	.title{
	  color: #409eff;
	}
  }
}

.left-board {
  width: 282px;
  position: absolute;
  left: 0;
  top: 0;
  height:100%;
}

.left-scrollbar {
  height: calc(100% - 58px);
  overflow: hidden;
}

.center-scrollbar {
  height: calc(100% - 42px);
  overflow: hidden;
  border-left: 1px solid #f1e8e8;
  border-right: 1px solid #f1e8e8;
  box-sizing: border-box;
}
.center-board {
  height: 94%;
  width: auto;
  margin: 0 350px 0 286px;
  box-sizing: border-box;
  border-right: 4px solid #EEEEEE;
  border-left: 4px solid #EEEEEE
}

.empty-info {
  position: absolute;
  top: 46%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  color: #ccb1ea;
  letter-spacing: 4px;
}

.action-bar {
  position: relative;
  height: 42px;
  text-align: right;
  padding: 0 15px;
  box-sizing: border-box;;
  border: 1px solid #f1e8e8;
  border-top: none;
  border-left: none;

  .delete-btn {
    color: #F56C6C;
  }
}

.logo-wrapper {
  position: relative;
  height: 42px;
  background: #fff;
  border-bottom: 1px solid #f1e8e8;
  box-sizing: border-box;
}

.logo {
  position: absolute;
  left: 12px;
  top: 6px;
  line-height: 30px;
  color: #00afff;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;

  > a img {
    //width: 50%;
    height: 30px;
    vertical-align: top;
  }

  //.github{
  //display: inline-block;
  //vertical-align: sub;
  //margin-left: 15px;
  //> img{
  //  height: 22px;
  //}
  //}
}

.center-board-row {
  padding: 12px 12px 15px 12px;
  box-sizing: border-box;

  & > .el-form {
    // 69 = 12+15+42
    height: calc(100vh - 69px);
  }
}

.drawing-board {
  height: 100%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  .components-body {
    padding: 0;
    margin: 0;
    font-size: 0;
  }

  .sortable-ghost {
    display: none;
  }
  .ghost {
    background: white;
    border-top: 5px solid rgb(89, 89, 223);
    box-sizing: border-box;
    font-size: 0;
    content: "";
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    outline: none 0;
    height: 0 !important;
    width: 100%;
    margin: 2px 0;
  }
  .components-item.sortable-ghost {
    display: none;
  }
  .components-item.ghost {
    width: 100%;
    height: 60px;
    background-color: rgb(89, 89, 223);
  }
  .drawing-item.ghost{
    width: 100%;
    height: 60px;
    background-color: rgb(89, 89, 223);
  }


  .active-from-item {
    & > .el-form-item {
      background: $selectedColor;
      border-radius: 6px;
    }

    & > .drawing-item-copy, & > .drawing-item-delete {
      display: initial;
    }

    & > .component-name {
      color: $lighterBlue;
    }
  }

  .el-form-item {
    margin-bottom: 15px;
  }
}
  // 子表单
  .table-row-box{
    display: flex;
    width: 100%;
    overflow: scroll;
	flex-wrap: nowrap !important;
    .el-col{
      flex-basis: 20%;
      min-width: 200px;
      .el-form-item{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
      }
      .el-form-item__label{
        display: flex;
      }
      .el-form-item__content{
        margin: 0 !important;
        width: 100%;
        overflow: hidden;
        // div{
        //   width: 100% !important;
        // }
      }
    }
}
.drawing-item {
  position: relative;
  cursor: move;

  &.unfocus-bordered:not(.active-from-item) > div:first-child {
    border: 1px dashed #ccc;
  }

  .el-form-item {
    padding: 12px 10px;
  }
}

.drawing-row-item {
  position: relative;
  cursor: move;
  box-sizing: border-box;
  border: 1px dashed #ccc;
  border-radius: 3px;
  padding: 0 2px;
  margin-bottom: 15px;

  .drawing-row-item {
    margin-bottom: 2px;
  }

  .el-col {
    margin-top: 22px;
  }

  .el-form-item {
    margin-bottom: 0;
  }

  .drag-wrapper {
    min-height: 80px;
    padding: 20px 0px 40px 0;
	display: flex;
	flex-wrap: wrap;
  }

  &.active-from-item {
    border: 1px dashed $lighterBlue;
  }

  .component-name {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    color: #bbb;
    display: inline-block;
    padding: 0 6px;
  }
}

.drawing-item, .drawing-row-item {
  &:hover {
    & > .el-form-item {
      background: $selectedColor;
      border-radius: 6px;
    }

    & > .drawing-item-copy, & > .drawing-item-delete {
      display: initial;
    }
  }

  & > .drawing-item-copy, & > .drawing-item-delete {
    display: none;
    position: absolute;
    top: -10px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    border: 1px solid;
    cursor: pointer;
    z-index: 12;
  }

  & > .drawing-item-copy {
    right: 56px;
    border-color: $lighterBlue;
    color: $lighterBlue;
    background: #fff;

    &:hover {
      background: $lighterBlue;
      color: #fff;
    }
  }

  & > .drawing-item-delete {
    right: 24px;
    border-color: #F56C6C;
    color: #F56C6C;
    background: #fff;

    &:hover {
      background: #F56C6C;
      color: #fff;
    }
  }
}